package control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.ContainerView;

public class ContainerController implements ActionListener{

	private ContainerView container;
	private ProgramMenuController programMenu;
	
	public ContainerController() {
		container = new ContainerView(this);
		programMenu = new ProgramMenuController(container);
		container.setVisible(true);
	}
	
	@Override
	public void actionPerformed(ActionEvent event) {
		if(event.getSource() == container.getMenuFileExit())
		{
			System.exit(0);
		}
	}

}
